﻿#include "kfcwaiter.h"

#include "mealbuilder.h"

KFCWaiter::KFCWaiter()
{

}

void KFCWaiter::setMealBuilder(MealBuilder *builder)
{
    m_builder = builder;
}

Meal *KFCWaiter::construct()
{
    m_builder->buildFood();
    m_builder->buildDrink();

    Meal* meal = m_builder->getMeal();
    return meal;
}
